<template>
  <div class="order_catchtm">
    <!-- <div class="where" style="background: #fff; padding: 10px 30px; font-size: 14px; color: #595959;">当前位置：生产管理>抓单管理>天猫抓单</div>
    <div style="height: 16px; width: 100%; background: #F9F9F9;"></div> -->

    <div class="team">
      <div class="powertop">
        <top></top>
      </div>

      <div class="centerall">


        <div class="t-img" style="background:#2974FF;">
          <!-- <img src="../../../static/img/catchjd.png"> -->
          <img src="../../../static/kuanping/tianm.png" style="height: 40px; padding: 20px 40px;">
          <span class="t-email" @click="mobileshow">设置短信报警</span>
          <span class="t-email" style="right: 160px;" @click="biaoqishezhi">订单标旗设置</span>
          <span class="t-email" style="right: 300px;" @click="tongbukai">同步备注配置</span>
        </div>
        <div style="padding: 20px; margin: 20px 0; background: #EEF7FF; color: #565656;">未打标店铺如果出现cookie频繁掉线可切换登录账号获取cookie，仍未解决可联系客服获取浏览器插件来解决。</div>
        <div class="t-con" v-loading="loading" style="width: 100%; overflow: hidden;">

          <el-table :data="list" border  style="width: 100%">
              <el-table-column  prop="shop_name"  label="店铺名称" width="300px"  align="center">
                <template slot-scope="scope">
                  <div style="display:flex; align-items: center;">
                    {{scope.row.shop_name}}

                    <el-tooltip class="item" effect="dark" content="打标店铺可直接获取身份证信息，无需录入cookie，未打标店铺需要录入cookie来获取身份证信息，店铺打标请联系客服提供运营商授权标识，该标识由天猫小二审核" placement="top-start">
                      <div style="background: rgb(255, 211, 1); font-size: 12px; color:rgb(124, 0, 0); border-radius: 20px; padding: 2px 8px; margin-left: 10px;" v-if="scope.row.is_apply == 1">
                        已打标
                      </div>
                    </el-tooltip>
                    <el-tooltip class="item" effect="dark" content="打标店铺可直接获取身份证信息，无需录入cookie，未打标店铺需要录入cookie来获取身份证信息，店铺打标请联系客服提供运营商授权标识，该标识由天猫小二审核" placement="top-start">
                      <div style="background: rgb(197, 197, 197); font-size: 12px; color:#fff; border-radius: 20px; padding: 2px 8px; margin-left: 10px;" v-if="scope.row.is_apply == 0">
                        未打标
                      </div>
                    </el-tooltip>


                  </div>
                </template>
              </el-table-column>
              <el-table-column label="cookie"  align="center">
                <template slot-scope="scope">
                  <div style="display: flex;justify-content: center;" v-if="scope.row.is_apply == 0">
                    <div v-if="scope.row.is_cookie == 0">不可用，请重新录入</div>
                    <div v-if="scope.row.is_cookie == 1">可用</div>
                    <div v-if="scope.row.is_cookie == 2" style="color: #ff253f;">掉线</div>
                    <div class="cookiechange" @click="showlog(scope.row,1)"><i class="el-icon-edit" style="color: #409eff;"></i></div>
                  </div>
                </template>
              </el-table-column>



              <el-table-column   label="授权状态"  align="center">
                <template slot-scope="scope">
                  <div class="kflexcc" v-if="!scope.row.access_token">
                    <div style="margin-right: 20px;">未授权</div>
                    <div style="color: #409eff;" @click="shouquan(scope.row)">前往授权</div>
                  </div>
                  <div class="kflexcc" v-if="scope.row.access_token">

                    <div style="margin-right: 20px;">已授权</div>
                    <div style="color: #409eff;" @click="shouquan2(scope.row)">更新授权</div>
                  </div>
                </template>
              </el-table-column>

              <el-table-column label="店铺session" align="center" width="300">
                <template slot-scope="scope">
                  <div class="cookiechange" @click="showlog2(scope.row.id,scope.row)">
                    session
                    <i class="el-icon-edit" style="color: #409eff;"></i>
                  </div>
                  <div v-if="scope.row.is_access_token == 0" style="color: rgb(8, 201, 160);">未配置</div>
                  <div v-if="scope.row.is_access_token == 1" style="color: rgb(8, 201, 160);">已配置</div>
                  <div v-if="scope.row.is_access_token == 2" style="color: rgb(8, 201, 160);">已过期</div>
                </template>
              </el-table-column>

              <el-table-column  prop="shop_name"  label="自动发货"  align="center">
                <template slot-scope="scope">
                  <el-switch v-model="scope.row.is_delivery" active-color="rgb(8, 201, 160)" inactive-color="#2974FF" :active-value='1'
                    :inactive-value='0' @change="change_is_delivery(scope.row)"></el-switch>
                </template>
              </el-table-column>
              <el-table-column  prop="shop_name"  label="同步备注"  align="center">
                  <template slot-scope="scope">
                    <el-switch v-model="scope.row.is_remark" active-color="rgb(8, 201, 160)" inactive-color="#2974FF" :active-value='1'
                      :inactive-value='0' @change="change_is_delivery(scope.row)"></el-switch>
                  </template>
              </el-table-column>
              <el-table-column  prop="shop_name"  label="操作"  align="center" width="420">
                  <template slot-scope="scope">
                    <div style="display: flex; justify-content: center; margin-bottom: 10px; font-size: 14px; align-items: center; flex-wrap: wrap;">
                      <div><span style="margin-right: 10px;" v-if="scope.row.is_run == 1 && scope.row.is_login == 1">抓单已开启</span></div>
                      <div>
                        <el-button style="margin-right: 10px;" v-if="scope.row.is_run == 0 && scope.row.is_login != 1" type="primary" size="small" round plain
                          @click="gocatch(scope.row.id)">开启抓单</el-button>
                      </div>
                      <div>
                        <el-button type="primary" plain round size="small" @click="loudanchoose(scope.row.id)">漏单补抓</el-button>
                      </div>
                      <div>
                        <el-button type="text" size="small"
                          @click="seelogs(scope.row.id,scope.row.shop_name)">查看抓单失败记录</el-button>
                      </div>
                      <div>
                        <i class="el-icon-delete" style="color: #2974FF; font-size: 18px; font-weight: bold;" @click="shanchu(scope.row.id)"></i>
                      </div>
                    </div>
                  </template>
              </el-table-column>

          </el-table>
          <!-- <div style="margin: 20px 0;"><strong>注：</strong>cookie(1)用户获取备注，不录入无法订单备注。cookie(2)用于获取身份证信息，不录入影响身份证获取</div> -->

          <div class="addshop" style="position: relative;">
            <span style="position: absolute; left: 310px; font-size: 12px; color: #409eff; cursor: pointer;" @click="log4 = true">点击了解如何获取cookie</span>
            <el-button type="danger" round @click="addshplog = true"><i class="el-icon-plus"></i>添加店铺</el-button>

          </div>




          <div style="position: relative;">
            <img src="https://file.storep.91haoka.cn/gantanhao/xintianmao33.png" style="width: 1665px; margin-top: 20px;">
            <a style="position:absolute; top: 100px; left: 450px; font-weight: bold;" target="_blank" href="https://fuwu.taobao.com/ser/detail.htm?spm=a1z13.fuwu_search_result_2023.0.0.3d085aca7YJ6nq&service_code=FW_GOODS-1001258457&tracelog=search&from_key=%E6%95%A2%E6%8E%A2%E5%8F%B7">
              <el-button type="primary" round >点击前往</el-button>
            </a>
          </div>

          <!-- <div class="getcookie">
            <div style="color: #ff253f;">cookie说明：cookie只影响抓单，不影响发货和备注同步，请保持可用状态</div>
            <h3>天猫添加店铺抓单流程：</h3>


            <el-steps :active="0" align-center>
              <el-step style="width: 25%;flex-basis: 25%">
                <div slot="description" style="padding: 30px 0; font-size: 14px; color: rgb(51, 51, 51);">
                  <div style="margin-bottom: 10px; font-size: 16px;">服务市场授权易店长</div>
                  <div><router-link to="/order_catch/order_catchtmsq">点击查看授权流程</router-link></div>
                </div>
              </el-step>
              <el-step style="width: 50%;flex-basis: 50%" class="dandu">
                <div slot="description" style="padding: 30px 0; font-size: 14px; color: rgb(51, 51, 51);">
                  <div style="margin-bottom: 10px; font-size: 16px;">添加店铺</div>
                  <div style="margin-bottom: 10px;">点击上方的“申请添加店铺”按钮</div>
                  <div>填写店铺名称和第一步复制的成功信息后， 点击“确定添加”，店铺添加成功！</div>
                </div>
              </el-step>
              <el-step style="width: 25%;flex-basis: 25%">
                <div slot="description" style="padding: 30px 0; font-size: 14px; color: rgb(51, 51, 51);">
                   <div style="margin-bottom: 10px; font-size: 16px;">开始抓单</div>
                   <div style="margin-bottom: 10px;">添加店铺后点击开始抓单</div>
                   <div style="margin-bottom: 10px;">在弹出的窗口输入cookie信息即可抓单</div>
                   <div><router-link to="/order_catch/order_catchtmcook">点击了解如何获取cookie</router-link></div>
                </div>
              </el-step>
            </el-steps>
          </div> -->
        </div>
      </div>
    </div>
    <el-dialog title="填写授权页面展示的session" center :visible.sync="log2" :close-on-click-modal="false" width="600px">
      <div>
        <el-input type="textarea" placeholder="请填写完整" v-model="cookies2" rows="15"></el-input>
      </div>

      <span slot="footer" class="dialog-footer">
        <el-button type="info" round @click="log2 = false">取 消</el-button>
        <el-button type="danger" round  @click="gocookie2">确 定</el-button>
      </span>
    </el-dialog>

    <el-dialog title="获取cookie" center :visible.sync="log4" :close-on-click-modal="false" width="1000px">
      <div class="cooktitle">天猫cookie获取方法：</div>
      <div class="cookp">1、登录天猫店铺商家后台</div>
      <div class="cookp">2、左侧菜单点击“已卖出的宝贝”，进入页面</div>
      <div class="cookp">3、按下F12（或者在设置菜单）中进入开发者模式，点击右上角开发者模式的“network”（部分浏览器在底部显示）。</div>
      <div class="cookp"><img src="../../../static/tmcook1.png" style="max-width: 100%;"></div>
      <div class="cookp">4、点击查询订单按钮，无需设置条件，可以看到开发者窗口中network中的内容开始变化。</div>
      <div class="cookp"><img src="../../../static/tmcook2.png" style="max-width: 100%;"></div>
      <div class="cookp">5、在开发者窗口点击选中name框内的第一个文件，在右侧的headers框内可以看到cookie，复制冒号后面的内容到 referer上面为止（图示：</div>
      <div class="cookp"><img src="../../../static/tmcook3.png" style="max-width: 100%;"></div>
      <div class="cookp">7、粘贴内容到cookie框</div>

      <span slot="footer" class="dialog-footer">
        <el-button type="danger" round  @click="log4 = false">关闭</el-button>
      </span>
    </el-dialog>

    <el-dialog title="cookie登录" center :visible.sync="log" :close-on-click-modal="false" width="800px">
      <div>
        <el-input type="textarea" placeholder="请输入cookie" v-model="cookies" rows="15"></el-input>
      </div>
      <div class="autotidan">
        <div class="autotidan" style="line-height: 36px;">
          <div class="xin"><span class="xins">新</span></div>
          <div class="check">抓单后更改旗帜颜色</div>
          <div class="see">
            <el-select v-model="flag" clearable placeholder="选择颜色">
              <el-option label="灰" value="0">
                <span style="float: left">
                  <div class="color1"></div>
                </span>
                <span class="color1s">灰</span>
              </el-option>
              <el-option label="红" value="1">
                <span style="float: left">
                  <div class="color2"></div>
                </span>
                <span class="color2s">红</span>
              </el-option>
              <el-option label="黄" value="2">
                <span style="float: left">
                  <div class="color3"></div>
                </span>
                <span class="color3s">黄</span>
              </el-option>
              <el-option label="绿" value="3">
                <span style="float: left">
                  <div class="color4"></div>
                </span>
                <span class="color4s">绿</span>
              </el-option>
              <el-option label="蓝" value="4">
                <span style="float: left">
                  <div class="color5"></div>
                </span>
                <span class="color5s">蓝</span>
              </el-option>
              <el-option label="紫" value="5">
                <span style="float: left">
                  <div class="color6"></div>
                </span>
                <span class="color6s">紫</span>
              </el-option>
            </el-select>
            </el-form-item>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="info" round @click="log = false">取 消</el-button>
        <el-button type="danger" round @click="gocookie">确 定</el-button>
      </span>
    </el-dialog>


    <el-dialog title="备注cookie" center :visible.sync="logbeizhu" :close-on-click-modal="false" width="600px">
      <div>
        <el-input type="textarea" placeholder="请输入cookie" v-model="memo_cookie" rows="15"></el-input>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="info" round @click="logbeizhu = false">取 消</el-button>
        <el-button type="danger" round @click="gocookiebeizhu">确 定</el-button>
      </span>
    </el-dialog>


    <el-dialog title="手机号设置" center :visible.sync="mlog" :close-on-click-modal="false" width="600px">
      <div>
        <el-input v-model="mobile" placeholder="请输入手机号"></el-input>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="info" round @click="mlog = false">取 消</el-button>
        <el-button type="danger" round @click="gomobile">确 定</el-button>
      </span>
    </el-dialog>
    <el-dialog title="添加抓单店铺" center :visible.sync="addshplog" :close-on-click-modal="false" width="600px">
      <div style="margin-bottom: 20px;">
        <el-input v-model="addshopname" placeholder="请输入完整的店铺名称"></el-input>
      </div>
      <!-- <div>
        <el-input v-model="addshoptoken" placeholder="请输入AccssToken"></el-input>
      </div> -->
      <!-- <div style="margin-top:20px; color:#999;">
        注：成功提交后我们将在工作日内48小时配置好，届时可操作抓单。
      </div> -->
      <span slot="footer" class="dialog-footer">
        <el-button type="danger" round @click="addshaopf">提交申请</el-button>
      </span>
    </el-dialog>
    <el-dialog title="漏单补抓" center :visible.sync="loudanlog" :close-on-click-modal="false" @close="clearText" width="600px">
      <div style="color: #ff253f;">注：补抓单号之间，请使用英文逗号分隔</div>
      <div>
        <el-input type="textarea" placeholder="请输入补抓单号用','分隔" v-model="loudannum" rows="15"></el-input>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="info" round @click="loudanlog = false">取 消</el-button>
        <el-button type="danger" round @click="loudan">确 定</el-button>
      </span>
    </el-dialog>
    <biaoqi ref="biaoqi" :source="'tmall'"></biaoqi>
    <tongbubeizhupeizhi ref="tongbubeizhupeizhi" :id="'tm'"></tongbubeizhupeizhi>
  </div>

</template>

<script>
  import axios from 'axios'
  import biaoqi from '@/components/productionManagement/biaoqi'
  import top from '@/components/productionManagement/Azujian/nav.vue'
  import tongbubeizhupeizhi from './log/tongbubeizhupeizhi.vue'
  export default {
    name: "order_catchtm",
    components: {
      biaoqi,
      top,tongbubeizhupeizhi
    },
    data() {
      return {
        flag: "",
        loudanlog: false,
        loudannum: "",
        loading: true,
        chooseid: "",

        list: "",
        hide: false,
        log: false,
        log2: false,
        logbeizhu:false,
        cookies: "",
        cookies2: "",
        memo_cookie:"",
        mobile: "",
        mlog: false,
        addshplog: false,
        addshopname: "",
        addshoptoken: "",
        id: "",
        time: [],
        timerule: {
          disabledDate(time) {
            var time1 = Date.now() - 3600 * 1000 * 24 * 4
            return time.getTime() < time1
          },
        },
        mobileid: "",
        shop: "",
        log4:false
      }
    },
    created() {
      this.getlist();
      this.shop = JSON.parse(localStorage.getItem('SHOP')).shop_id
    },
    mounted() {

    },
    methods: {
      tongbukai:function(){
        this.$refs.tongbubeizhupeizhi.chushihua()
      },
      shouquan:function(item){
        window.open('https://oauth.taobao.com/authorize?response_type=token&client_id=34635028&state=1212&view=web')

        // axios.post('/api/plan-market/tmall/callback/url', {
        //     id: item.id
        //   })
        //   .then(response => {
        //     if (response.data.msg.code == 0) {
        //       this.$message.success('操作成功');
        //       this.getlist()
        //       location.href = response.data.data.tmall_callback_url
        //     } else {
        //       this.$message.error(response.data.msg.info);
        //     }
        //   })
      },
      shouquan2:function(item){
        window.open('https://oauth.taobao.com/authorize?response_type=token&client_id=34635028&state=1212&view=web')
        // axios.post('/api/plan-market/tmall/update/token', {
        //     id: item.id
        //   })
        //   .then(response => {
        //     if (response.data.msg.code == 0) {
        //       this.$message.success('操作成功');
        //       this.getlist()
        //       // location.href = response.data.data.tmall_callback_url
        //     } else {
        //       this.$message.error(response.data.msg.info);
        //     }
        //   })
      },

      change_is_delivery: function(item) {
        axios.post('/api/plan-market/shop/data/syn/set', {
            id: item.id,
            is_delivery: item.is_delivery,
            is_remark: item.is_remark
          })
          .then(response => {
            if (response.data.msg.code == 0) {
              this.$message.success('操作成功');
              this.getlist()
            } else {
              this.$message.error(response.data.msg.info);
            }
          })
      },
      biaoqishezhi: function() {
        this.$refs.biaoqi.biaoqi_log = true
      },
      clearText() {
        this.loudannum = ''
      },
      shanchu: function(id) {

        this.$confirm('删除店铺会使已有订单失去订单来源，请慎重删除', '重要', {
          confirmButtonText: '确定删除',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(() => {
          this.loading = true
          axios.post('/api/plan-market/out-store/delete', {
              id: id
            })
            .then(response => {
              if (response.data.msg.code == 0) {
                this.getlist()
              } else {
                this.$message.error(response.data.msg.info);
              }
            })
        })

      },
      //开启抓单
      gocatch(id) {
        this.id = id
        axios.post('/api/plan-market/out-store/updaterun', {
            id: this.id
          })
          .then(response => {
            if (response.data.msg.code == 0) {
              this.loading = true
              this.getlist()
            } else {
              this.$message.error(response.data.msg.info);
            }
          })
      },
      // seelogs(id){
      //   this.$router.push({
      //     path: "/order_catch/order_catchtmlogs",
      //     query: { id: id }
      //   });
      // },
      seelogs(id, name) {
        this.$router.push({
          path: "/order_catch/order_catchjdlogs",
          query: {
            id: id,
            name: encodeURIComponent(name)
          }
        });
      },
      loudanchoose: function(e) {
        this.chooseid = e
        this.loudanlog = true
      },
      loudan: function() {
        var that = this
        var list = [this.loudannum]
        if (this.loudannum.indexOf('，') > -1) {
          list = this.loudannum.split('，')
        }
        if (this.loudannum.indexOf(',') > -1) {
          list = this.loudannum.split(',')
        }

        axios.post('/api/plan-market/out-store/order/refetch', {
            id: this.chooseid,
            orders: list
          })
          .then(response => {
            if (response.data.msg.code == 0) {
              that.$message({
                message: '抓单已提交，请稍后查看。',
                type: 'success'
              });
              that.clearText()
              that.loudanlog = false
            } else {
              that.$message.error(response.data.msg.info);
            }
          })
      },
      //申请店铺
      addshaopf: function() {
        var that = this
        this.addshopname = this.addshopname.trim()
        // this.addshoptoken = this.addshoptoken.trim()
        if (this.addshopname == "") {
          this.$message.error("请填写店铺名");
          return false
        }
        axios.post('/api/plan-market/out-store/add', {
            name: this.addshopname,
            source: "tmall"
          })
          .then(response => {
            if (response.data.msg.code == 0) {
              that.$message({
                message: '申请已发送，我们将在48小时内处理。',
                type: 'success'
              });
              that.addshplog = false
              that.addshopname = ""
            } else {
              that.$message.error(response.data.msg.info);
            }
          })
      },
      mobileshow: function() {
        var that = this
        axios.get('/api/plan-market/out-store/one?id=' + this.mobileid)
          .then(response => {
            if (response.data.msg.code == 0) {
              that.mobile = response.data.data.mobile
              that.mlog = true
            } else {
              that.$message.error(response.data.msg.info);
            }
          })
      },
      stop: function(id) {
        var that = this
        axios.post('/api/plan-market/out-store/stop/fetch', {
            id: id
          })
          .then(response => {
            if (response.data.msg.code == 0) {
              that.$message.success('已停止抓单！');
              that.loading = true
              that.getlist()
            } else {
              that.$message.error(response.data.msg.info);
            }
          })
      },
      //点击登录和重复登录
      showlog: function(item,who) {
        this.id = item.id

        if(who == 1){
          this.cookies = item.cookie
          this.log = true
        }else{
          this.memo_cookie = item.memo_cookie
          this.logbeizhu = true
        }
      },
      showlog2: function(id,item) {
        this.id = id
        this.cookies2 = item.access_token
        this.log2 = true
        // cookies2
        // var that = this
        // axios.get('/api/plan-market/out-store/one?id='+id)
        // 	.then(response => {
        // 		if(response.data.msg.code == 0){
        //             that.cookies = response.data.data.cookie
        // 			that.time = [response.data.data.fetch_start_at,response.data.data.fetch_end_at]
        // 		}else{
        // 			that.$message.error(response.data.msg.info);
        // 		}
        // 	})
      },
      //设置手机号
      gomobile: function() {
        var that = this
        axios.post('/api/plan-market/out-store/update', {
            source: 'tmall',
            mobile: this.mobile
          })
          .then(response => {
            if (response.data.msg.code == 0) {
              that.$message({
                message: '手机号设置成功',
                type: 'success'
              });
              that.mlog = false
            } else {
              that.$message.error(response.data.msg.info);
            }
          })
      },
      //重新录入access_token
      gocookie2: function() {
        this.cookies2 = this.cookies2.trim()
        if (this.cookies2 == "") {
          this.$message('请填写access_token！');
          return false
        }
        // if(this.time == "" || this.time == undefined){
        //     this.$message('请选择抓单时间！');
        //     return false
        // }
        var that = this
        axios.post('/api/plan-market/out-store/access_token', {
            id: this.id,
            access_token: this.cookies2
          })
          .then(response => {
            if (response.data.msg.code == 0) {
              that.loading = true
              that.log2 = false
              that.getlist()
            } else {
              that.$message.error(response.data.msg.info);
            }
          })
      },

      gocookiebeizhu: function() {
        this.memo_cookie = this.memo_cookie.trim()
        if (this.memo_cookie == "") {
          this.$message('请填写备注cookie！');
          return false
        }
        var that = this
        axios.post('/api/plan-market/out-store/update', {
            id: this.id,
            memo_cookie: this.memo_cookie
          })
          .then(response => {
            if (response.data.msg.code == 0) {
              that.loading = true
              that.logbeizhu = false
              that.getlist()
            } else {
              that.$message.error(response.data.msg.info);
            }
          })

      },


      //cookie登录
      gocookie: function() {
        this.cookies = this.cookies.trim()
        if (this.cookies == "") {
          this.$message('请填写cookie！');
          return false
        }
        // if(this.time == "" || this.time == undefined){
        //     this.$message('请选择抓单时间！');
        //     return false
        // }
        var that = this
        axios.post('/api/plan-market/out-store/update', {
            id: this.id,
            cookie: this.cookies,
            color: this.flag
          })
          .then(response => {
            if (response.data.msg.code == 0) {
              that.loading = true
              that.log = false
              that.getlist()
            } else {
              that.$message.error(response.data.msg.info);
            }
          })

      },
      //获取号码
      getlist: function() {
        var that = this
        axios.get('/api/gth/out-store/list?source=tmall&is_new_tmall=1')
          .then(response => {
            if (response.data.msg.code == 0) {
              if (response.data.data != '') {

                that.list = response.data.data
                that.mobileid = response.data.data[0].id
                that.loading = false
              } else {
                that.loading = false
              }

            } else {
              that.$message.error(response.data.msg.info);
            }

          })
      },
      //翻页
      fanye: function(page) {
        this.loading = true
        this.getlist()
      }
    },
  }
</script>

<style lang="scss" scoped>
  .order_catchtm {
    @keyframes hua {
      0% {
        padding-left: 0px
      }

      100% {
        padding-left: 30px
      }
    }
    .dandu{
      /deep/ .el-step__line{
          left: 25% !important;
          right: -25% !important;
      }
    }
    /deep/ .el-step__description a{color:rgb(12, 131, 255); padding: 0 !important;}
    /deep/ .el-step__icon{ width: 38px; height: 38px; background: rgb(241, 241, 241); color: rgb(51, 51, 51); border: 0;}
    /deep/ .el-step__icon.is-text{ border-radius: 10px; font-size: 20px;}
    /deep/ .el-step__icon-inner{ font-weight: 100;}
    /deep/ .el-step__line{ background: rgb(233, 233, 233); top: 18px;}

    /deep/ .el-button--danger {
        color: #FFF;
        background-color: #2974FF;
        border-color: #2974FF;
    }
    /deep/ .el-button--danger.is-plain {
        color: #EEF7FF !important;
        background: #EEF7FF !important;
        border-color: #18A0FB !important;
    }

    .autotidan {
      display: flex;
      margin-top: 20px;

      .xin {
        flex-basis: 50px;

        .xins {
          color: #DD2727;
          animation: hua 2s infinite;
        }
      }

      .check {
        flex-basis: 200px
      }

      .see {
        flex-basis: 100px;
        color: #409EFF;
        cursor: pointer;
      }
    }

    .team {
      background: #F9F9F9;

      .powertop {
        display: flex;
        width: 640px;
      }

      .powertopli {
        flex-basis: 160px;
        line-height: 45px;
        border-top: 4px #EAEAEA solid;
        color: #727272;
        font-size: 14px;
        text-align: center;
      }

      .powertopact {
        background: #FFFFFF;
        border-top: 4px #DD2727 solid;
      }

      .centerall {
        padding: 20px;
        background: #FFFFFF;
        color: #666;

        .t-img {
          margin-bottom: 20px;
          position: relative;


          .t-email {
            position: absolute;
            background: #FFFFFF;
            color: #DD2727;
            right: 20px;
            padding: 8.5px 15px;
            border-radius:20px;
            top: 23px;
            margin-right: 10px;
            cursor: pointer;
          }

          .t-email2 {
            position: absolute;
            background: #FFFFFF;
            color: #DD2727;
            right: 20px;
            padding: 8.5px 15px;
            border-radius:20px;
            top: 23px;
            margin-right: 10px;
            cursor: pointer;
          }
        }

        .t-con {

          .list {
            display: flex;
            text-align: center;
            color: #727272;
            line-height: 45px;
            border-top: 1px #EAEAEA solid;
            border-bottom: 1px #EAEAEA solid;
            margin-top: -1px;

            .th {
              flex: 1;
              background: #F9F9F9;
              font-size: 14px;
              border-right: 1px #EAEAEA solid;
            }

            .td {
              flex: 1;
              font-size: 14px;
              border-right: 1px #EAEAEA solid;
            }

            .td2 {
              display: flex;
              justify-content: center;
              align-items: center;
              flex-wrap: wrap;
            }


          }

          .el-pagination {
            text-align: right;
            margin: 20px 0
          }

          .addshop {
            text-align: center;
            padding: 20px 0;
          }
        }

        .getcookie {
          background: rgb(248, 252, 255);
          padding: 20px;
          line-height: 30px;
          margin-top: 40px;
          border: 1px #e6e6e6 solid;

          .getflex {
            display: flex;
            justify-content: space-between;
            width: 750px;
            margin: 0 auto;
            margin-top: 50px;

            .getxian {
              height: 25px;
              border-bottom: 1px #D5D5D5 solid;
              flex-basis: 280px;
            }

            .getflexli {
              flex-basis: 50px;
              text-align: center;
              z-index: 2;

              .getflexlix {
                background: #D5D5D5;
                line-height: 50px;
                border-radius: 25px;
                width: 50px;
              }
            }
          }

          .getflex2 {
            display: flex;
            justify-content: space-between;
            width: 950px;
            margin: 20px auto;

            .getflexli2 {
              width: 240px;
              text-align: center;

              .getflexli2title {
                font-size: 16px;
              }

              .getflexli2content {
                font-size: 14px;
              }
            }
          }

          .blue a {
            color: #409EFF;
            cursor: pointer
          }
        }
      }
    }

    .cookiechange {
      margin-left: 5px;
      cursor: pointer;
    }

  }
</style>
